console.log(window.location.search)
var file = window.location.search.substr(1)

require.config({
    baseUrl: '../js/js/test/',
    paths: {
        chai: '../../test/chai',
        mocha: '../../test/mocha'
    }
});
require([file], function(){
    console.log('module load')
    if (typeof mochaPhantomJS !== "undefined") {
        mochaPhantomJS.run();
    }
    else {
        mocha.run();
    }
},function(e){
    console.log('module fail:'+ e)
});